import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
// 分页列表
export function getTimePageList(data,pageData) {
  return request({
    url: '/time/history/'+pageData.pageNo+'/'+pageData.pageSize,
    method: 'post',
    data
  })
}
//新增
export function getTimeAdd(data) {
    return request({
      url: '/time/add',
      method: 'post',
      data
    })
  }

// 审核
export function getTimeAudit(data) {
    return request({
      url: '/time/audit',
      method: 'post',
      data
    })
  }


// 查看
export function getHosPartDetail(id) {
    return request({
      url: '/time/detail/'+id,
      method: 'get',
    })
  }

// 删除
export function getHosPartDelete(id) {
    return request({
      url: '/time/delete/'+id,
      method: 'get',
    })
  }


  //导出
  export function getTimeExpor(data) {
    return request({
      url: '/time/export',
      method: 'post',
      responseType:'blob',
      data
    })
  }
